IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'CompanyDeleteByID')
	BEGIN
		DROP  Procedure  CompanyDeleteByID
	END

GO

CREATE Procedure CompanyDeleteByID
(
	@CompanyID int
	, @UserID int
)
AS

DELETE Companies
WHERE CompanyID = @CompanyID
	AND UserID = @UserID

